package com.hliushi.movie.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hliushi.movie.entity.MovieDirector;
import com.hliushi.movie.mapper.MovieDirectorMapper;
import com.hliushi.movie.service.MovieDirectorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class MovieDirectorServiceImpl extends ServiceImpl<MovieDirectorMapper, MovieDirector> implements MovieDirectorService {

    @Override
    public boolean insertDirector(MovieDirector movieDirector) {
        log.info("insert a movieDirector record: {}", movieDirector);
        return super.save(movieDirector);
    }

    @Override
    public boolean updateDirector(MovieDirector movieDirector) {
        log.info("update a movieDirector record: {}", movieDirector);
        return super.updateById(movieDirector);
    }
}
